package com.share51.novel.service;

import org.springframework.scheduling.annotation.Async;

import java.io.IOException;
import java.util.concurrent.Future;

/**
 * 定时任务业务处理
 * @author gb
 */
public interface TaskService {

    /**
     * 同步小说章节数据
     * @throws InterruptedException
     */
    void syncNovelChapter() throws InterruptedException;

    /**
     * 爬取小说章节详情内容
     * @throws IOException
     * @throws InterruptedException
     */
    void crawlChapter() throws IOException, InterruptedException;

    /**
     * 初始化布隆过滤器
     *
     * @throws Exception
     */
    void initBloomFilter() throws Exception;
}
